#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
	int i;
	cout << '*';
	for (i = 1; i <= 9; i++)
		cout << setw(8) << i;
	cout << endl;
	for (i = 1; i <= 9; i++)
	{
		cout << i;
		for (int j = 1; j <= i; j++)
			cout << setw(3) << i << '*' << j << '=' << setw(2) << i * j;
		cout << endl;
	}
	cout << "012345678123456781234568712345678123456781234567812345678123456781234567891234567898";
	return 0;
}